package com.lgj.springboot_lgj.dao.ext;

import com.github.pagehelper.PageInfo;
import com.lgj.springboot_lgj.bean.basic.Article;
import com.lgj.springboot_lgj.bean.basic.Comment;
import com.lgj.springboot_lgj.bean.ext.ArticleExt;

import java.util.List;

public interface ArticleExtMapper {
    List<ArticleExt> findRecommendAll();

    List<ArticleExt> findArticleWithCategoryAndUser(int pageNum, int pageSize, String title, Integer status, Integer categoryId);

    ArticleExt findByIdWithCategoryAndUser(int id);

    void deleteById(int id);

    void changeStatus(int id,int status);

    void saveOrUpdate(Article article);

    List<String> findArticleTitle();

    List<String> findArticleCover();
    List<Integer> findArticleIdByUserId(Integer UserId);

    Article findArticleExtTitle(String title);
}
